home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / dosref23.zip / CONTENTS < prev    next >
Text File  |  1992-03-16  |  23KB  |  408 lines

  1.  
  2.        **  Programmer's Technical Reference for MSDOS and the IBM PC **
  3.                 USA copyright TXG 392-616  ALL RIGHTS RESERVED
  4. ───────────────────────────────┤ DOSREF (tm) ├────────────────────────────────
  5.                      ISBN 1-878830-02-3 (disk-based text)
  6.                     Copyright (c) 1987, 1992 Dave Williams
  7.                         ┌─────────────────────────────┐
  8.                         │ Shareware Version, 03/16/92 │
  9.                         │  Please Register Your Copy  │
  10.                         └─────────────────────────────┘
  11.  
  12.  
  13.  The rest of the chapters aren't included in this shareware demonstration
  14. package.  Since the complete manual takes about 1000k even compressed in
  15. LHarc format, something had to give somewhere.
  16.  
  17.  Here's a sample of what you're missing:
  18.  
  19.  DOS 5 information (mainly in registered chapters 4, and 5)
  20.  
  21.  Appendices             Mouse API               Networking
  22.  
  23.  EMS                    XMS                     VCPI
  24.  
  25.  Video                  chip-level stuff        MORE!
  26.  
  27.  
  28.  
  29.                                TABLE OF CONTENTS
  30.  
  31.  
  32. INTRO           Introduction, credits, copyrights
  33.  
  34.  
  35. CHAPTER 1       DOS and the PC
  36.  
  37. Some History .......................................................... 1**1
  38. What is DOS? .......................................................... 1**2
  39. Other Operating Systems ............................................... 1**3
  40. Specific Versions of MS/PC-DOS ........................................ 1**4
  41. The Operating System Heirarchy ........................................ 1**5
  42. DOS Structure ......................................................... 1**6
  43. DOS Initialization .................................................... 1**7
  44.  
  45.  
  46. CHAPTER 2       Low Memory and Absolute Addresses
  47.  
  48. Introduction .......................................................... 2**1
  49. System Memory Map ..................................................... 2**2
  50. A Brief Guide to Current Memory Terminology ........................... 2**3
  51. PC Port Assignment .................................................... 2**4
  52. Reserved Memory Locations ............................................. 2**5
  53. Absolute Addresses .................................................... 2**6
  54. The IBM PC System Interrupts (Overview) ............................... 2**7
  55. Quick Chart of Interrupts 00h-0FFh .................................... 2**8
  56. The IBM-PC System Interrupts 00h-0Fh (in detail) ...................... 2**9
  57.  
  58.  
  59. CHAPTER 3       The IBM ROM BIOS
  60.  
  61. Calling the ROM BIOS .................................................. 3**1
  62. Interrupt 10h  Video Services ......................................... 3**2
  63. Interrupt 11h  Equipment Check ........................................ 3**3
  64. Interrupt 12h  Memory Size ............................................ 3**4
  65. Interrupt 13h  Disk Functions ......................................... 3**5
  66. Interrupt 14h  Initialize and Access Serial Port ...................... 3**6
  67.                FOSSIL Drivers ......................................... 3**7
  68. Interrupt 15h  Cassette I/O ........................................... 3**8
  69. Interrupt 16h  Keyboard I/O ........................................... 3**9
  70. Interrupt 17h  Printer ................................................ 3**10
  71. Interrupt 18h  ROM BASIC .............................................. 3**11
  72. Interrupt 19h  Bootstrap Loader ....................................... 3**12
  73. Interrupt 1Ah  Time of Day ............................................ 3**13
  74. Interrupt 1Bh  Control-Break .......................................... 3**14
  75. Interrupt 1Ch  Timer Tick ............................................. 3**15
  76. Interrupt 1Dh  Vector of Video Initialization Parameters .............. 3**16
  77. Interrupt 1Eh  Vector of Diskette Controller Parameters ............... 3**17
  78. Interrupt 1Fh  Ptr to Graphics Character Extensions (Graphics Set 2) .. 3**18
  79.  
  80.  
  81. CHAPTER 4       DOS Function Requests
  82.  
  83. General Programming Guides ............................................ 4**1
  84. DOS Registers ......................................................... 4**2
  85. DOS Stacks ............................................................ 4**3
  86. DOS Interrupts ........................................................ 4**4
  87. Interrupt 20h (Terminate) ............................................. 4**5
  88. DOS Services (quick list) ............................................. 4**6
  89. Calling the DOS Services .............................................. 4**7
  90. Version Specific Information .......................................... 4**8
  91. Compatibility Problems With DOS 4.0+ .................................. 4**9
  92. PCjr Cartridge Support ................................................ 4**10
  93. eDOS 4.0 .............................................................. 4**11
  94. DOS Services in Detail ................................................ 4**12
  95.  
  96.  
  97. CHAPTER 5       Interrupts 22h through 0FFh
  98.  
  99. Interrupt 22h   Terminate Address ..................................... 5**1
  100. Interrupt 23h   Ctrl-Break Exit Address ............................... 5**2
  101. Interrupt 24h   Critical Error Handler ................................ 5**3
  102. Interrupt 25h   Absolute Disk Read .................................... 5**4
  103. Interrupt 26h   Absolute Disk Write ................................... 5**5
  104. Interrupt 27h   Terminate And Stay Resident ........................... 5**6
  105. Interrupt 28h   (not documented by Microsoft) ......................... 5**7
  106. Interrupt 29h   (not documented by Microsoft) ......................... 5**8
  107. Interrupt 2Ah   Microsoft Networks - Session Layer Interrupt .......... 5**9
  108. Interrupt 2Bh   Unknown ............................................... 5**10
  109. Interrupt 2Ch   Unknown ............................................... 5**11
  110. Interrupt 2Dh   Unknown ............................................... 5**12
  111. Interrupt 2Eh   Alternate EXEC (DOS 2.0+) ............................. 5**13
  112. Interrupt 2Fh   Multiplex Interrupt ................................... 5**14
  113. Interrupt 30h   FAR jump instruction for CP/M-style calls ............. 5**15
  114. Interrupt 31h   Unknown ............................................... 5**16
  115. Interrupt 32h   Unknown ............................................... 5**17
  116. Interrupt 33h   Used by Microsoft Mouse Driver Function Calls ......... 5**18
  117. Interrupt 34h   Turbo C/Microsoft languages - Floating Point emulation  5**19
  118. Interrupt 35h   Turbo C/Microsoft languages - Floating Point emulation  5**20
  119. Interrupt 36h   Turbo C/Microsoft languages - Floating Point emulation  5**21
  120. Interrupt 37h   Turbo C/Microsoft languages - Floating Point emulation  5**22
  121. Interrupt 38h   Turbo C/Microsoft languages - Floating Point emulation  5**23
  122. Interrupt 39h   Turbo C/Microsoft languages - Floating Point emulation  5**24
  123. Interrupt 3Ah   Turbo C/Microsoft languages - Floating Point emulation  5**25
  124. Interrupt 3Bh   Turbo C/Microsoft languages - Floating Point emulation  5**26
  125. Interrupt 3Ch   Turbo C/Microsoft languages - Floating Point emulation  5**27
  126. Interrupt 3Dh   Turbo C/Microsoft languages - Floating Point emulation  5**28
  127. Interrupt 3Eh   Turbo C/Microsoft languages - Floating Point emulation  5**29
  128. Interrupt 3Fh   Overlay Manager Interrupt (Microsoft LINK.EXE) ........ 5**30
  129. Interrupt 40h   Hard Disk BIOS ........................................ 5**31
  130. Interrupt 41h   Hard Disk Parameters .................................. 5**32
  131. Interrupt 42h   Pointer to screen BIOS entry .......................... 5**33
  132. Interrupt 43h   Pointer to EGA Graphics Character Table ............... 5**34
  133. Interrupt 44h   Pointer to graphics character table ................... 5**35
  134. Interrupt 45h   Reserved by IBM  (not initialized) .................... 5**36
  135. Interrupt 46h   Pointer to second hard disk parameter block ........... 5**37
  136. Interrupt 47h   Reserved by IBM  (not initialized) .................... 5**38
  137. Interrupt 48h   Cordless Keyboard Translation ......................... 5**39
  138. Interrupt 49h   Non-keyboard Scan Code Translation Table Address (PCjr) 5**40
  139. Interrupt 4Ah   Real-Time Clock Alarm (Convertible, PS/2) ............. 5**41
  140. Interrupt 4Bh   Reserved by IBM  (not initialized) .................... 5**42
  141. Interrupt 4Ch   Reserved by IBM  (not initialized) .................... 5**43
  142. Interrupt 4Dh   Reserved by IBM  (not initialized) .................... 5**44
  143. Interrupt 4Eh   Reserved by IBM  (not initialized) .................... 5**45
  144. Interrupt 4Fh   Reserved by IBM  (not initialized) .................... 5**46
  145. Interrupt 50-57 IRQ0-IRQ7 Relocation .................................. 5**47
  146. Interrupt 58h   Reserved by IBM  (not initialized) .................... 5**48
  147. Interrupt 59h   Reserved by IBM  (not initialized) .................... 5**49
  148. Interrupt 5Ah   Reserved by IBM  (not initialized)  ................... 5**50
  149. Interrupt 5Bh   Reserved by IBM  (not initialized) .................... 5**51
  150. Interrupt 5Ah   Cluster Adapter BIOS entry address .................... 5**52
  151. Interrupt 5Bh   Reserved by IBM  (not initialized) .................... 5**53
  152. Interrupt 5Ch   NETBIOS interface entry port, TOPS .................... 5**54
  153. Interrupt 5Dh   Reserved by IBM  (not initialized) .................... 5**55
  154. Interrupt 5Eh   Reserved by IBM  (not initialized) .................... 5**56
  155. Interrupt 5Fh   Reserved by IBM  (not initialized) .................... 5**57
  156. Interrupt 60h-67h  User Program Interrupts ............................ 5**58
  157. Interrupt 60h   Network OS Interface .................................. 5**59
  158. Interrupt 67h   Expanded Memory Board Driver Interrupt ................ 5**60
  159. Interrupt 68h   Not Used  (not initialized) ........................... 5**61
  160. Interrupt 69h   Not Used  (not initialized) ........................... 5**62
  161. Interrupt 6Ah   Not Used  (not initialized) ........................... 5**63
  162. Interrupt 6Bh   Not Used  (not initialized) ........................... 5**64
  163. Interrupt 6Ch   System Resume Vector (Convertible) .................... 5**65
  164. Interrupt 6Dh   Not Used  (not initialized) ........................... 5**66
  165. Interrupt 6Eh   Not Used  (not initialized) ........................... 5**67
  166. Interrupt 6Fh   10-Net API............................................. 5**68
  167. Interrupt 70h   IRQ 8, Real Time Clock Interrupt (AT, XT/286, PS/2) ... 5**69
  168. Interrupt 71h   IRQ 9, Redirected to IRQ 8 (AT, XT/286, PS/2) ......... 5**70
  169. Interrupt 72h   IRQ 10  (AT, XT/286, PS/2)  Reserved .................. 5**71
  170. Interrupt 73h   IRQ 11  (AT, XT/286, PS/2)  Reserved .................. 5**72
  171. Interrupt 74h   IRQ 12  Mouse Interrupt (PS/2) ........................ 5**73
  172. Interrupt 75h   IRQ 13, Coprocessor Error (AT) ........................ 5**74
  173. Interrupt 76h   IRQ 14, Hard Disk Controller (AT, XT/286, PS/2) ....... 5**75
  174. Interrupt 77h   IRQ 15 (AT, XT/286, PS/2)  Reserved ................... 5**76
  175. Interrupt 78h   Not Used .............................................. 5**77
  176. Interrupt 79h   Not Used .............................................. 5**78
  177. Interrupt 7Ah   Reserved .............................................. 5**79
  178. Interrupt 7Bh-7Eh  Not Used by IBM .................................... 5**80
  179. Interrupt 7Ch   REXX-PC API ........................................... 5**81
  180. Interrupt 7Fh   IBM 8514/A Graphics Adapter API ....................... 5**82
  181. Interrupt 80h-85h  Reserved by BASIC .................................. 5**83
  182. Interrupt 86h   Int 18 when relocated by NETBIOS ...................... 5**84
  183. Interrupt 86h-0F0h  Used by BASIC when BASIC interpreter is running ... 5**85
  184. Interrupt 0A4h  Right Hand Man API .................................... 5**86
  185. Interrupt 0D4h  PC-MOS/386 API ........................................ 5**87
  186. Interrupt 0E0h  Digital Research CP/M-86 function calls ............... 5**88
  187. Interrupt 0E1h  PC Cluster Disk Server Information .................... 5**89
  188. Interrupt 0E2h  PC Cluster Program .................................... 5**90
  189. Interrupt 0E4h  Logitech Modula-2 v2.0   Monitor Entry ................ 5**91
  190. Interrupt 0E5h  Not Used .............................................. 5**92
  191. Interrupt 0E6h  Not Used .............................................. 5**93
  192. Interrupt 0E7h  Not Used .............................................. 5**94
  193. Interrupt 0E8h  Not Used .............................................. 5**95
  194. Interrupt 0E9h  Not Used .............................................. 5**96
  195. Interrupt 0EAh  Not Used .............................................. 5**97
  196. Interrupt 0EBh  Not Used .............................................. 5**98
  197. Interrupt 0ECh  Not Used .............................................. 5**99
  198. Interrupt 0EDh  Not Used ............................................. 5**100
  199. Interrupt 0EEh  Not Used ............................................. 5**101
  200. Interrupt 0EFh  GEM interface (Digital Research) ..................... 5**102
  201. Interrupt 0F0h  unknown .............................................. 5**103
  202. Interrupts 0F1h-0FFh  (absolute addresses 3C4h-3FFh) ................. 5**104
  203. Interrupt 0F4h  Not Used ............ ................................ 5**105
  204. Interrupt 0F5h  Not Used ............ ................................ 5**106
  205. Interrupt 0F8h  Set Shell Interrupt (OEM) ............................ 5**107
  206. Interrupt 0F9h  Reserved ............................................. 5**108
  207. Interrupt 0FAh  USART ready (RS-232C) ................................ 5**109
  208. Interrupt 0FBh  USART RS ready (keyboard) ............................ 5**110
  209. Interrupt 0FCh  Unknown ...............................................5**111
  210. Interrupt 0FDh  reserved for user interrupt .......................... 5**112
  211. Interrupt 0FEh  reserved by IBM ...................................... 5**113
  212. Interrupt 0FFh  reserved by IBM ...................................... 5**114
  213.  
  214.  
  215.  
  216. CHAPTER 6       DOS Control Blocks and Work Areas
  217.  
  218. DOS Address Space ..................................................... 6**1
  219. Storage Blocks ........................................................ 6**2
  220. Disk Transfer Area (DTA) .............................................. 6**3
  221. Program Segment Prefix ................................................ 6**4
  222. Memory Control Blocks ................................................. 6**5
  223. DOS Program Segment ................................................... 6**6
  224.  
  225.  
  226. CHAPTER 7       DOS File Information
  227.  
  228. File Management Functions ............................................. 7**1
  229. FCB Function Calls .................................................... 7**2
  230. Handle Function Calls ................................................. 7**3
  231. Special File Handles .................................................. 7**4
  232. Raw and Cooked File I/O ............................................... 7**5
  233. Number of Open Files Allowed  ......................................... 7**6
  234. Restrictions on FCB Usage ............................................. 7**7
  235. Restrictions on Handle usage .......................................... 7**8
  236. Allocating Space to a File ............................................ 7**9
  237. MSDOS / PCDOS Differences ............................................. 7**10
  238. .COM File Structure ................................................... 7**11
  239. .EXE File Structure ................................................... 7**12
  240. The Relocation Table .................................................. 7**13
  241. "NEW" .EXE Format (Microsoft Windows and OS/2) ........................ 7**14
  242. Standard File Control Block ........................................... 7**15
  243. Extended File Control Block ........................................... 7**16
  244. Disk Transfer Area .................................................... 7**17
  245.  
  246.  
  247. CHAPTER 8       DOS Disk Information
  248.  
  249. The DOS Area .......................................................... 8**1
  250. The Boot Record ....................................................... 8**2
  251. DOS File Allocation Table (FAT) ....................................... 8**3
  252.         Media Descriptor Byte ......................................... 8**4
  253.         12 Bit FATs ................................................... 8**5
  254.         16 Bit FATs ................................................... 8**6
  255.         32 Bit FATs ................................................... 8**7
  256. DOS Disk Directory .................................................... 8**8
  257. The Data Area ......................................................... 8**9
  258. Floppy Disk Types ..................................................... 8**10
  259. Hard Disk Layout ...................................................... 8**11
  260. System Initialization ................................................. 8**12
  261. Boot Record/Partition Table ........................................... 8**13
  262. Hard Disk Technical Information ....................................... 8**14
  263. Determining Hard Disk File Allocation ................................. 8**15
  264. BIOS Disk Functions ................................................... 8**16
  265.  
  266.  
  267. CHAPTER 9       Device Drivers
  268.  
  269.  
  270. CHAPTER 10      Lotus/Intel/Microsoft Expanded Memory Specification
  271.  
  272. History ............................................................... 10**1
  273. Uses of Expanded Memory ............................................... 10**2
  274. DOS and Expanded Memory ............................................... 10**3
  275. Different Memory Types ................................................ 10**4
  276. AST/Quadram/Ashton-Tate Enhanced EMM .................................. 10**5
  277. EMS Address Space Map ................................................. 10**6
  278. Writing Programs That Use Expanded Memory ............................. 10**7
  279. Page Frames ........................................................... 10**8
  280. Calling the Manager ................................................... 10**9
  281. Detecting EMS ......................................................... 10**10
  282. Terminate and Stay Resident (TSR) Program Cooperation ................. 10**11
  283. Expanded Memory Services Quick List ................................... 10**12
  284. Expanded Memory Services .............................................. 10**13
  285.         LIM 3.2 Specification ......................................... 10**14
  286.         LIM 4.0 Specification ......................................... 10**15
  287.         AQA EEMS 3.2 Specification .................................... 10**16
  288.         VCPI API 1.0 .................................................. 10**17
  289. Expanded Memory Manager Error Codes ................................... 10**18
  290. Microsoft Extended Memory Specification 2.0 ........................... 10**19
  291.  
  292.  
  293. CHAPTER 11      Conversion Between Operating Systems
  294.  
  295. Overview .............................................................. 11**1
  296. Special Considerations ................................................ 11**2
  297. Example Operating Systems ............................................. 11**3
  298. Atari ST .............................................................. 11**4
  299. CP/M .................................................................. 11**5
  300. MacOS ................................................................. 11**6
  301. AmigaDOS .............................................................. 11**7
  302. OS/2 .................................................................. 11**8
  303. UNIX .................................................................. 11**9
  304.  
  305.  
  306. CHAPTER 13      Network APIs
  307.  
  308. FTP Driver - PC/TCP Packet Driver Specification ....................... 13**1
  309. 10-Net Network ........................................................ 13**2
  310. LANtastic LANOS API ................................................... 13**3
  311. Novell NetWare 2.11 API ............................................... 13**4
  312. APPC/PC ............................................................... 13**5
  313.  
  314.  
  315. CHAPTER 14      Mouse Programming
  316.  
  317. General Information ................................................... 14**1
  318. Register Usage ........................................................ 14**2
  319. Interrupt 33h Function Requests ....................................... 14**3
  320. Interrupt 10h Function Requests ....................................... 14**4
  321.  
  322.  
  323. CHAPTER 15      Register-Level Programming
  324.  
  325. 8555 Peripheral Interface ............................................. 15**1
  326. 8259 Interrupt Controller ............................................. 15**2
  327. AT CMOS RAM Configuration ............................................. 15**3
  328.  
  329.  
  330. CHAPTER 16      Video Programming
  331.  
  332. Quick List of BIOS Interrupt 10h Functions ............................ 16**1
  333. BIOS Interrupt 10h Functions in Detail ................................ 16**2
  334.  
  335.  
  336. CHAPTER 17      Multitasking Shells
  337.  
  338. Introduction .......................................................... 17**1
  339. Programming Practices ................................................. 17**2
  340. TopView/DESQview API (interrupt 15h, "System Services" interface) ..... 17**3
  341. TopView/DESQview API (interrupt 16h, "BIOS Video" interface) .......... 17**4
  342.  
  343.  
  344. CHAPTER 18      Viruses and Trojan Horses
  345.  
  346.  
  347. MISCSTUF        Miscellaneous Stuff
  348.  
  349. AFTERWRD        Afterword
  350.  
  351. CREDITS         Credits and Bibliography
  352.  
  353.  
  354.  
  355.  A P P E N D I C E S
  356.  
  357. APPENDIX  1     Keyboard scan code chart
  358.  
  359. APPENDIX  2     ASCII character chart
  360.  
  361. APPENDIX  3     IBM PC character set
  362.  
  363. APPENDIX  4     IBM PC error code listing
  364.  
  365. APPENDIX  5     Addresses of various manufacturers
  366.  
  367. APPENDIX  6     Hard disk information
  368.  
  369. APPENDIX  7     Floppy and Tape Devices
  370.  
  371. APPENDIX  8     Pinouts of various connectors on the IBM PC
  372.  
  373. APPENDIX  9     Sizes of various drivers installed in CONFIG.SYS
  374.  
  375. APPENDIX  10    Common modem instruction sets
  376.  
  377. APPENDIX  11    Glossary of computer terminology
  378.  
  379. APPENDIX  12    Various busses used in MSDOS machines
  380.  
  381. APPENDIX  13    Common filename extensions
  382.  
  383. APPENDIX  14    Clock speeds of various expansion cards
  384.  
  385. APPENDIX  15    Header formats used by various archive utilities
  386.  
  387. APPENDIX  16    Miscellaneous Hardware Information
  388.  
  389. APPENDIX  17    HP LaserJet Setup Codes
  390.  
  391. APPENDIX  18    ANSI.SYS Escape Sequences
  392.  
  393. APPENDIX  19    DEC VT100 Escape Sequences
  394.  
  395. APPENDIX  20    Various Paint Program Formats
  396.  
  397. APPENDIX  21    Some Commonly Used Hot-Keys
  398.  
  399. APPENDIX  22    Sound Blaster API
  400.  
  401. APPENDIX  23    French-Canadian accented character chart
  402.  
  403. APPENDIX  24    Compuserve Graphic Image Format '89a
  404.  
  405. APPENDIX  25    Hex Chart
  406.  
  407. APPENDIX  26    Microsoft TSR Specification 1.0
  408.